/**
 */
package com.dingpeikeji.quickdeer.core.modules.orders.entity;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 退款通知Entity
 * @author isouland
 * @version 2016-07-14
 */
public class TOrdersOut extends DataEntity<TOrdersOut> {
	
	private static final long serialVersionUID = 1L;
	
	// 退款通知的值
	public static final String NOTIFED_YES = "1"; // 已通知
	public static final String NOTIFED_NO = "0"; // 未通知
	
	// 退票状态的值
	public static final String RTN_STATUS_SUCCESS = "1"; // 退票成功
	public static final String RTN_STATUS_FAIL = "0"; // 退票失败
	
	private Integer outid;		// outid
	private Integer orderid;		// 订单ID
	private Integer outnum;		// 退票数量
	private Integer outchildnum;		// 儿童票
	private String outuserid;		// 退票人
	private Date outtime;		// 退票时间
	private Double rtnmoney; // 退票金额
	private String batchNo;		// 退款批次号
	private String notifyed;		// 退款通知
	private String rtnstatus; // 退票状态
	
	public TOrdersOut() {
		super();
	}

	public TOrdersOut(String id){
		super(id);
	}


	@NotNull(message="outid不能为空")
	public Integer getOutid() {
		return outid;
	}

	public void setOutid(Integer outid) {
		this.outid = outid;
	}
	
	public Integer getOrderid() {
		return orderid;
	}

	public void setOrderid(Integer orderid) {
		this.orderid = orderid;
	}
	
	public Integer getOutnum() {
		return outnum;
	}

	public void setOutnum(Integer outnum) {
		this.outnum = outnum;
	}
	
	public Integer getOutchildnum() {
		return outchildnum;
	}

	public void setOutchildnum(Integer outchildnum) {
		this.outchildnum = outchildnum;
	}
	
	@Length(min=0, max=64, message="退票人长度必须介于 0 和 64 之间")
	public String getOutuserid() {
		return outuserid;
	}

	public void setOutuserid(String outuserid) {
		this.outuserid = outuserid;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getOuttime() {
		return outtime;
	}

	public void setOuttime(Date outtime) {
		this.outtime = outtime;
	}
	
	@Length(min=0, max=32, message="退款批次号长度必须介于 0 和 32 之间")
	public String getBatchNo() {
		return batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}
	
	@Length(min=0, max=1, message="退款通知长度必须介于 0 和 1 之间")
	public String getNotifyed() {
		return notifyed;
	}

	public void setNotifyed(String notifyed) {
		this.notifyed = notifyed;
	}

	public String getRtnstatus() {
		return rtnstatus;
	}

	public void setRtnstatus(String rtnstatus) {
		this.rtnstatus = rtnstatus;
	}

	public Double getRtnmoney() {
		return rtnmoney;
	}

	public void setRtnmoney(Double rtnmoney) {
		this.rtnmoney = rtnmoney;
	}
	
}
